package com.hntest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;


@Controller("IndexController")
public class IndexController {

    @RequestMapping(value = "p2p/index",method = {RequestMethod.GET,RequestMethod.POST})
    public String showP2p(ModelMap modelMap, HttpServletRequest request){

        return "p2p/index";
    }

    @RequestMapping(value = "/index",method = {RequestMethod.GET,RequestMethod.POST})
    public String show(ModelMap modelMap, HttpServletRequest request){

        return "index";
    }
}
